apiVersion: v1
kind: Service
metadata:
  labels:
    k8s-app: {APP_NAME}
    qcloud-app: {APP_NAME}
  name: {APP_NAME}
  namespace: {NAMESPACE}
spec:
  ports:
  - name: {APP_NAME}
    port: {APP_PORT}
    protocol: TCP
    targetPort: {APP_PORT}
  selector:
    k8s-app: {APP_NAME}
    qcloud-app: {APP_NAME}
  sessionAffinity: None
  type: ClusterIP
